<!--- Code on this page Runs every single time a page is requested from this directory and subdirectory, so its a good place
to add security --->

<CFAPPLICATION NAME="myegivings" CLIENTMANAGEMENT="Yes" SESSIONMANAGEMENT="Yes" SETCLIENTCOOKIES="yes" SESSIONTIMEOUT="#CreateTimeSpan(0,8,0,0)#" APPLICATIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#">

<cfparam name="Application.Initialized"	 default="false">
<cfparam name="session.LoggedIn" DEFAULT="FALSE">
<cfset DSN1 = "epos">

<cfif Application.Initialized eq 'false'> 



		<cfset APPLICATION.Directory = 'epos'>
		<cfset Datasource = 'epos'>
        <cfset dsn = 'epos'>
        <cfset accountnumber = 9>
        <cfset merchantid = 272500329078>
		<cfset myusername = "HarvestUser">
        <cfset mypath = 'epos'>
        <cfset dba = 'E-POS'>
        <cfset mypaymentitemid = 8281>
        <cfset mylineid = 37142>
        <cfset mytoken = "64f59116a6afb810f9651eaf3a757ead7fd26e32">
        <cfset mykey = "13d6ee2515e8c1a7b470140449f3972c3549a9a6">
        <cfset ver = "beta epos">
        <!---<cfset bgcolor = "023d4b">--->
        <cfset bgcolor = "0b4580">
        <cfset npspath = 'https://demo.municipay.com:8443/payServer/services/payment?wsdl'>
        
		

	
	<cfset Application.Initialized = 'false'> 
	
</cfif> 



<!--	If the user is not yet logged in, and not currently on the login pages,
		or the forgotten password page, -->
<cfif session.LoggedIn IS "FALSE">

		 <!---Ok, so if the user is NOT logged AND not at either the login page or page that processes the login, redirect them to the login page --->
		<cfif (CGI.SCRIPT_NAME IS NOT "/#APPLICATION.Directory#/login.cfm") AND (CGI.SCRIPT_NAME IS NOT "/#APPLICATION.Directory#/LoginProcess.cfm")>  
			 <cflocation url="/#APPLICATION.Directory#/login.cfm" addtoken="false">
		</cfif>
	
</cfif>	
		
	
		